package com.cy.pj.sys.dao;

import com.cy.pj.common.pojo.CheckBox;
import com.cy.pj.sys.pojo.SysRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysRoleDao {
    List<SysRole> selectRoles(SysRole sysRole);

    SysRole selectById(Integer id);

    int insertRole(SysRole sysRole);

    int updateRole(SysRole sysRole);

    @Select("select id,name from sys_roles")
    List<CheckBox> selectCheckRoles();
}
